Skip to content

[DaleSeo] WEEK 02 Solutions#2675

Merged
DaleSeo merged 1 commit into
DaleStudy:mainfrom
DaleSeo:week2
Jul 3, 2026
Merged

[DaleSeo] WEEK 02 Solutions#2675
DaleSeo merged 1 commit into
DaleStudy:mainfrom
DaleSeo:week2

Conversation

@DaleSeo

@DaleSeo DaleSeo commented Jun 28, 2026

Copy link
Copy Markdown
Member

답안 제출 문제

작성자 체크 리스트

  • Projects의 오른쪽 버튼(▼)을 눌러 확장한 뒤, Week를 현재 주차로 설정해주세요.
  • 문제를 모두 푸시면 프로젝트에서 StatusIn Review로 설정해주세요.
  • 코드 검토자 1분 이상으로부터 승인을 받으셨다면 PR을 병합해주세요.

검토자 체크 리스트

Important

본인 답안 제출 뿐만 아니라 다른 분 PR 하나 이상을 반드시 검토를 해주셔야 합니다!

  • 바로 이전에 올라온 PR에 본인을 코드 리뷰어로 추가해주세요.
  • 본인이 검토해야하는 PR의 답안 코드에 피드백을 주세요.
  • 토요일 전까지 PR을 병합할 수 있도록 승인해주세요.

@dalestudy

dalestudy Bot commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

📊 DaleSeo 님의 학습 현황

이번 주 제출 문제

문제 난이도 유형 분석
3sum Medium ✅ 의도한 유형

누적 학습 요약

  • 풀이한 문제: 1 / 75개
  • 이번 주 유형 일치율: 100% (1문제 중 1문제 일치)

문제 풀이 현황

카테고리 진행도 완료
Heap ■■□□□□□ 1 / 3 (Medium 1)
Array □□□□□□□ 0 / 10 ← 아직 시작 안 함
Binary □□□□□□□ 0 / 5 ← 아직 시작 안 함
Dynamic Programming □□□□□□□ 0 / 11 ← 아직 시작 안 함
Graph □□□□□□□ 0 / 8 ← 아직 시작 안 함
Interval □□□□□□□ 0 / 5 ← 아직 시작 안 함
Linked List □□□□□□□ 0 / 6 ← 아직 시작 안 함
Matrix □□□□□□□ 0 / 4 ← 아직 시작 안 함
String □□□□□□□ 0 / 10 ← 아직 시작 안 함
Tree □□□□□□□ 0 / 14 ← 아직 시작 안 함

🤖 이 댓글은 GitHub App을 통해 자동으로 작성되었습니다.

🔢 API 사용량 (gpt-5-nano)
요청 입력 토큰 출력 토큰 합계 비용
1 497 37 534 $0.000040
2 491 47 538 $0.000043
3 477 55 532 $0.000046
합계 1,465 139 1,604 $0.000129

Comment thread 3sum/DaleSeo.rs

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🏷️ 알고리즘 패턴 분석

  • 패턴: Two Pointers, Sorting
  • 설명: 주어진 코드는 정렬 후 두 포인터(low, high)를 이용해 가능한 3합을 찾아내는 구조로, 중복 제거를 위한 건너뛰기 로직도 포함되어 있습니다. 이는 Two Pointers 패턴의 대표적인 예시이며, 정렬 후 탐색 공간을 절약하는 전략입니다.

📊 시간/공간 복잡도 분석

유저 분석 실제 분석 결과
Time O(n^2) O(n^2)
Space O(1) O(1)

피드백: 정렬 O(n log n) 이후 이중 루프와 투 포인터로 총 O(n^2) 시간으로 3합 탐색. 중복 제거를 잘 처리하고 있다.

개선 제안: 현재 구현이 적절해 보입니다.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아 이렇게 왼쪽에 포인터를 두고 오른쪽으로 이동하면서
오른쪽에 위치한 부분배열의 left/right 포인터로 접근하는 방법도 있겠네요

@njngwn njngwn self-requested a review June 28, 2026 14:35
@DaleSeo

DaleSeo commented Jul 3, 2026

Copy link
Copy Markdown
Member Author

@njngwn 님, 리뷰 안 해주셔서 셀프 승인합니다용~

@DaleStudy 승인

@dalestudy dalestudy Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

승인되었습니다! 👍

@DaleSeo DaleSeo merged commit e89acb1 into DaleStudy:main Jul 3, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from In Review to Completed in 리트코드 스터디 8기 Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Completed

Development

Successfully merging this pull request may close these issues.

2 participants